/***************************************************************************
 *   This is a part of the NextCAD Web APP.                                *
 *   Copyright (C) AMCAX, All rights reserved.                             *
 ***************************************************************************/

import { BaseCommand, cadAppLog } from '@amcax/base';
import { ctx2, environmentManager } from '@app-cad/module';

export const cmdSketch: BaseCommand = {
  id: 'CmdSketch',
  label: 'command.sketch',
  icon: 'Airfoil',
  help: {
    remark: 'tips.redo',
    // preview: '/help/Redo.gif'
  },

  invoke: () => {
    cadAppLog('exchange to sketch !!!!');
    ctx2.viewer.sceneSetup.fit2DView();
    environmentManager.switchTo('Sketch');
    cadAppLog('exchange to sketch finished !!!!');
  },
};
